package com.soundai.skill.helloworld.Service.impl;

import com.hands.transfercenter.VoiceInfoService;
import com.soundai.skill.helloworld.Service.TransferCenterInfoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.concurrent.ExecutionException;

@Service
public class TransferCenterInfoServiceImpl implements TransferCenterInfoService {

    @Reference(interfaceClass = VoiceInfoService.class, version = "1.0.1", check = false,timeout = 15000)
    private VoiceInfoService voiceInfoService;

    @Override
    public String testInfo(String msg, String devId) throws InterruptedException, ExecutionException {
        String s = voiceInfoService.VoiceInfo(msg, devId);
        System.out.println(s);
        return s;
    }
}
